#include "ssd2828.h"
#include "ST7703__BV055HDE_N47_3Q00.h"

void DSI_CMD(U8 num, U8 reg)
{
	GP_COMMAD_PA(num);
	W_D(reg);
}

void DSI_PA(U8 dat)
{
	W_D(dat);
}

void init_ST7703__BV055HDE_N47_3Q00(void)
{

	GP_COMMAD_PA(0X04);W_D(0XFF);W_D(0XAA);W_D(0X55);W_D(0XA5);W_D(0X80);
	GP_COMMAD_PA(0X03);W_D(0X6F);W_D(0X11);W_D(0X00);
	GP_COMMAD_PA(0X03);W_D(0XF7);W_D(0X20);W_D(0X00);
	GP_COMMAD_PA(0X02);W_D(0X6F);W_D(0X06);
	GP_COMMAD_PA(0X02);W_D(0XF7);W_D(0XA0);
	GP_COMMAD_PA(0X02);W_D(0X6F);W_D(0X19);
	GP_COMMAD_PA(0X02);W_D(0XF7);W_D(0X12);
	GP_COMMAD_PA(0X02);W_D(0XF4);W_D(0X03);
	GP_COMMAD_PA(0X02);W_D(0X6F);W_D(0X08);
	GP_COMMAD_PA(0X02);W_D(0XFA);W_D(0X40);
	GP_COMMAD_PA(0X02);W_D(0X6F);W_D(0X11);
	GP_COMMAD_PA(0X02);W_D(0XF3);W_D(0X01);
	GP_COMMAD_PA(0X06);W_D(0XF0);W_D(0X55);W_D(0XAA);W_D(0X52);W_D(0X08);W_D(0X00);
	GP_COMMAD_PA(0X02);W_D(0XC8);W_D(0X80);
	GP_COMMAD_PA(0X03);W_D(0XB1);W_D(0X6C);W_D(0X01);
	GP_COMMAD_PA(0X02);W_D(0XB6);W_D(0X08);
	GP_COMMAD_PA(0X02);W_D(0X6F);W_D(0X02);
	GP_COMMAD_PA(0X02);W_D(0XB8);W_D(0X08);
	GP_COMMAD_PA(0X03);W_D(0XBB);W_D(0X54);W_D(0X54);
	GP_COMMAD_PA(0X03);W_D(0XBC);W_D(0X05);W_D(0X05);
	GP_COMMAD_PA(0X02);W_D(0XC7);W_D(0X01);
	GP_COMMAD_PA(0X06);W_D(0XBD);W_D(0X02);W_D(0XB0);W_D(0X0C);W_D(0X0A);W_D(0X00);
	GP_COMMAD_PA(0X06);W_D(0XF0);W_D(0X55);W_D(0XAA);W_D(0X52);W_D(0X08);W_D(0X01);
	GP_COMMAD_PA(0X03);W_D(0XB0);W_D(0X05);W_D(0X05);
	GP_COMMAD_PA(0X03);W_D(0XB1);W_D(0X05);W_D(0X05);
	GP_COMMAD_PA(0X03);W_D(0XBC);W_D(0X3A);W_D(0X01);
	GP_COMMAD_PA(0X03);W_D(0XBD);W_D(0X3E);W_D(0X01);
	GP_COMMAD_PA(0X02);W_D(0XCA);W_D(0X00);
	GP_COMMAD_PA(0X02);W_D(0XC0);W_D(0X04);
	GP_COMMAD_PA(0X02);W_D(0XB2);W_D(0X00);
	GP_COMMAD_PA(0X02);W_D(0XBE);W_D(0X80);
	GP_COMMAD_PA(0X03);W_D(0XB3);W_D(0X19);W_D(0X19);
	GP_COMMAD_PA(0X03);W_D(0XB4);W_D(0X12);W_D(0X12);
	GP_COMMAD_PA(0X03);W_D(0XB9);W_D(0X24);W_D(0X24);
	GP_COMMAD_PA(0X03);W_D(0XBA);W_D(0X14);W_D(0X14);
	GP_COMMAD_PA(0X06);W_D(0XF0);W_D(0X55);W_D(0XAA);W_D(0X52);W_D(0X08);W_D(0X02);
	GP_COMMAD_PA(0X02);W_D(0XEE);W_D(0X01);
	GP_COMMAD_PA(0X05);W_D(0XEF);W_D(0X09);W_D(0X06);W_D(0X15);W_D(0X18);
	GP_COMMAD_PA(0X07);W_D(0XB0);W_D(0X00);W_D(0X00);W_D(0X00);W_D(0X08);W_D(0X00);W_D(0X17);
	GP_COMMAD_PA(0X02);W_D(0X6F);W_D(0X06);
	GP_COMMAD_PA(0X07);W_D(0XB0);W_D(0X00);W_D(0X25);W_D(0X00);W_D(0X30);W_D(0X00);W_D(0X45);
	GP_COMMAD_PA(0X02);W_D(0X6F);W_D(0X0C);
	GP_COMMAD_PA(0X05);W_D(0XB0);W_D(0X00);W_D(0X56);W_D(0X00);W_D(0X7A);
	GP_COMMAD_PA(0X07);W_D(0XB1);W_D(0X00);W_D(0XA3);W_D(0X00);W_D(0XE7);W_D(0X01);W_D(0X20);
	GP_COMMAD_PA(0X02);W_D(0X6F);W_D(0X06);
	GP_COMMAD_PA(0X07);W_D(0XB1);W_D(0X01);W_D(0X7A);W_D(0X01);W_D(0XC2);W_D(0X01);W_D(0XC5);
	GP_COMMAD_PA(0X02);W_D(0X6F);W_D(0X0C);
	GP_COMMAD_PA(0X05);W_D(0XB1);W_D(0X02);W_D(0X06);W_D(0X02);W_D(0X5F);
	GP_COMMAD_PA(0X07);W_D(0XB2);W_D(0X02);W_D(0X92);W_D(0X02);W_D(0XD0);W_D(0X02);W_D(0XFC);
	GP_COMMAD_PA(0X02);W_D(0X6F);W_D(0X06);
	GP_COMMAD_PA(0X07);W_D(0XB2);W_D(0X03);W_D(0X35);W_D(0X03);W_D(0X5D);W_D(0X03);W_D(0X8B);
	GP_COMMAD_PA(0X02);W_D(0X6F);W_D(0X0C);
	GP_COMMAD_PA(0X05);W_D(0XB2);W_D(0X03);W_D(0XA2);W_D(0X03);W_D(0XBF);
	GP_COMMAD_PA(0X05);W_D(0XB3);W_D(0X03);W_D(0XD2);W_D(0X03);W_D(0XFF);
	GP_COMMAD_PA(0X06);W_D(0XF0);W_D(0X55);W_D(0XAA);W_D(0X52);W_D(0X08);W_D(0X06);
	GP_COMMAD_PA(0X03);W_D(0XB0);W_D(0X00);W_D(0X17);
	GP_COMMAD_PA(0X03);W_D(0XB1);W_D(0X16);W_D(0X15);
	GP_COMMAD_PA(0X03);W_D(0XB2);W_D(0X14);W_D(0X13);
	GP_COMMAD_PA(0X03);W_D(0XB3);W_D(0X12);W_D(0X11);
	GP_COMMAD_PA(0X03);W_D(0XB4);W_D(0X10);W_D(0X2D);
	GP_COMMAD_PA(0X03);W_D(0XB5);W_D(0X01);W_D(0X08);
	GP_COMMAD_PA(0X03);W_D(0XB6);W_D(0X09);W_D(0X31);
	GP_COMMAD_PA(0X03);W_D(0XB7);W_D(0X31);W_D(0X31);
	GP_COMMAD_PA(0X03);W_D(0XB8);W_D(0X31);W_D(0X31);
	GP_COMMAD_PA(0X03);W_D(0XB9);W_D(0X31);W_D(0X31);
	GP_COMMAD_PA(0X03);W_D(0XBA);W_D(0X31);W_D(0X31);
	GP_COMMAD_PA(0X03);W_D(0XBB);W_D(0X31);W_D(0X31);
	GP_COMMAD_PA(0X03);W_D(0XBC);W_D(0X31);W_D(0X31);
	GP_COMMAD_PA(0X03);W_D(0XBD);W_D(0X31);W_D(0X09);
	GP_COMMAD_PA(0X03);W_D(0XBE);W_D(0X08);W_D(0X01);
	GP_COMMAD_PA(0X03);W_D(0XBF);W_D(0X2D);W_D(0X10);
	GP_COMMAD_PA(0X03);W_D(0XC0);W_D(0X11);W_D(0X12);
	GP_COMMAD_PA(0X03);W_D(0XC1);W_D(0X13);W_D(0X14);
	GP_COMMAD_PA(0X03);W_D(0XC2);W_D(0X15);W_D(0X16);
	GP_COMMAD_PA(0X03);W_D(0XC3);W_D(0X17);W_D(0X00);
	GP_COMMAD_PA(0X03);W_D(0XE5);W_D(0X31);W_D(0X31);
	GP_COMMAD_PA(0X03);W_D(0XC4);W_D(0X00);W_D(0X17);
	GP_COMMAD_PA(0X03);W_D(0XC5);W_D(0X16);W_D(0X15);
	GP_COMMAD_PA(0X03);W_D(0XC6);W_D(0X14);W_D(0X13);
	GP_COMMAD_PA(0X03);W_D(0XC7);W_D(0X12);W_D(0X11);
	GP_COMMAD_PA(0X03);W_D(0XC8);W_D(0X10);W_D(0X2D);
	GP_COMMAD_PA(0X03);W_D(0XC9);W_D(0X01);W_D(0X08);
	GP_COMMAD_PA(0X03);W_D(0XCA);W_D(0X09);W_D(0X31);
	GP_COMMAD_PA(0X03);W_D(0XCB);W_D(0X31);W_D(0X31);
	GP_COMMAD_PA(0X03);W_D(0XCC);W_D(0X31);W_D(0X31);
	GP_COMMAD_PA(0X03);W_D(0XCD);W_D(0X31);W_D(0X31);
	GP_COMMAD_PA(0X03);W_D(0XCE);W_D(0X31);W_D(0X31);
	GP_COMMAD_PA(0X03);W_D(0XCF);W_D(0X31);W_D(0X31);
	GP_COMMAD_PA(0X03);W_D(0XD0);W_D(0X31);W_D(0X31);
	GP_COMMAD_PA(0X03);W_D(0XD1);W_D(0X31);W_D(0X09);
	GP_COMMAD_PA(0X03);W_D(0XD2);W_D(0X08);W_D(0X01);
	GP_COMMAD_PA(0X03);W_D(0XD3);W_D(0X2D);W_D(0X10);
	GP_COMMAD_PA(0X03);W_D(0XD4);W_D(0X11);W_D(0X12);
	GP_COMMAD_PA(0X03);W_D(0XD5);W_D(0X13);W_D(0X14);
	GP_COMMAD_PA(0X03);W_D(0XD6);W_D(0X15);W_D(0X16);
	GP_COMMAD_PA(0X03);W_D(0XD7);W_D(0X17);W_D(0X00);
	GP_COMMAD_PA(0X03);W_D(0XE6);W_D(0X31);W_D(0X31);
	GP_COMMAD_PA(0X06);W_D(0XD8);W_D(0X00);W_D(0X00);W_D(0X00);W_D(0X00);W_D(0X00);
	GP_COMMAD_PA(0X06);W_D(0XD9);W_D(0X00);W_D(0X00);W_D(0X00);W_D(0X00);W_D(0X00);
	GP_COMMAD_PA(0X02);W_D(0XE7);W_D(0X00);
	GP_COMMAD_PA(0X06);W_D(0XF0);W_D(0X55);W_D(0XAA);W_D(0X52);W_D(0X08);W_D(0X03);
	GP_COMMAD_PA(0X03);W_D(0XB0);W_D(0X20);W_D(0X00);
	GP_COMMAD_PA(0X03);W_D(0XB1);W_D(0X20);W_D(0X00);
	GP_COMMAD_PA(0X04);W_D(0XB2);W_D(0X05);W_D(0X00);W_D(0X42);W_D(0X00);W_D(0X00);
	GP_COMMAD_PA(0X06);W_D(0XB6);W_D(0X05);W_D(0X00);W_D(0X42);W_D(0X00);W_D(0X00);
	GP_COMMAD_PA(0X06);W_D(0XBA);W_D(0X53);W_D(0X00);W_D(0X42);W_D(0X00);W_D(0X00);
	GP_COMMAD_PA(0X06);W_D(0XBB);W_D(0X53);W_D(0X00);W_D(0X42);W_D(0X00);W_D(0X00);
	GP_COMMAD_PA(0X02);W_D(0XC4);W_D(0X40);
	GP_COMMAD_PA(0X06);W_D(0XF0);W_D(0X55);W_D(0XAA);W_D(0X52);W_D(0X08);W_D(0X05);
	GP_COMMAD_PA(0X03);W_D(0XB0);W_D(0X17);W_D(0X06);
	GP_COMMAD_PA(0X02);W_D(0XB8);W_D(0X00);
	GP_COMMAD_PA(0X06);W_D(0XBD);W_D(0X03);W_D(0X01);W_D(0X01);W_D(0X00);W_D(0X01);
	GP_COMMAD_PA(0X03);W_D(0XB1);W_D(0X17);W_D(0X06);
	GP_COMMAD_PA(0X03);W_D(0XB9);W_D(0X00);W_D(0X01);
	GP_COMMAD_PA(0X03);W_D(0XB2);W_D(0X17);W_D(0X06);
	GP_COMMAD_PA(0X03);W_D(0XBA);W_D(0X00);W_D(0X01);
	GP_COMMAD_PA(0X03);W_D(0XB3);W_D(0X17);W_D(0X06);
	GP_COMMAD_PA(0X03);W_D(0XBB);W_D(0X0A);W_D(0X00);
	GP_COMMAD_PA(0X03);W_D(0XB4);W_D(0X17);W_D(0X06);
	GP_COMMAD_PA(0X03);W_D(0XB5);W_D(0X17);W_D(0X06);
	GP_COMMAD_PA(0X03);W_D(0XB6);W_D(0X14);W_D(0X03);
	GP_COMMAD_PA(0X03);W_D(0XB7);W_D(0X00);W_D(0X00);
	GP_COMMAD_PA(0X03);W_D(0XBC);W_D(0X02);W_D(0X01);
	GP_COMMAD_PA(0X02);W_D(0XC0);W_D(0X05);
	GP_COMMAD_PA(0X02);W_D(0XC4);W_D(0XA5);
	GP_COMMAD_PA(0X03);W_D(0XC8);W_D(0X03);W_D(0X30);
	GP_COMMAD_PA(0X03);W_D(0XC9);W_D(0X03);W_D(0X51);
	GP_COMMAD_PA(0X06);W_D(0XD1);W_D(0X00);W_D(0X05);W_D(0X03);W_D(0X00);W_D(0X00);
	GP_COMMAD_PA(0X06);W_D(0XD2);W_D(0X00);W_D(0X05);W_D(0X09);W_D(0X00);W_D(0X00);
	GP_COMMAD_PA(0X02);W_D(0XE5);W_D(0X02);
	GP_COMMAD_PA(0X02);W_D(0XE6);W_D(0X02);
	GP_COMMAD_PA(0X02);W_D(0XE7);W_D(0X02);
	GP_COMMAD_PA(0X02);W_D(0XE9);W_D(0X02);
	GP_COMMAD_PA(0X02);W_D(0XED);W_D(0X33);
	GP_COMMAD_PA(0X01);W_D(0X11);
	GP_COMMAD_PA(0X01);W_D(0X29);
}